﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;

public partial class TestDatabase : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        StringBuilder sb = new StringBuilder();
        sb.AppendLine("Teams");
        string reason;
        if (!DataBase.Teams.Test(out reason))
            sb.AppendLine(reason);
        else
            sb.AppendLine("Success!");
        reason = "";
        sb.AppendLine("Users");
        if (!DataBase.Users.Test(out reason))
            sb.AppendLine(reason);
        else
            sb.AppendLine("Success!");
        reason = "";
        sb.AppendLine("Weeks");
        if (!DataBase.Weeks.Test(out reason))
            sb.AppendLine(reason);
        else
            sb.AppendLine("Success!");
        reason = "";
        sb.AppendLine("Games");
        if (!DataBase.Games.Test(out reason))
            sb.AppendLine(reason);
        else
            sb.AppendLine("Success!");
        reason = "";
        sb.AppendLine("Seasons");
        if (!DataBase.Seasons.Test(out reason))
            sb.AppendLine(reason);
        else
            sb.AppendLine("Success!");

        lblMessage.Text = sb.ToString();
    }
}